package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by fw_06 on 2018/1/17.
 */
@Entity
@Table(name = "m_shop_d", schema = "dm", catalog = "qmstst")
public class MShopD {
    private int shopKey;
    private String unqSeqId;
    private String shopId;
    private String shopName;
    private String evtCate;
    private String evtUser;
    private Timestamp evtTimestamp;
    private String evtNote;

    @Id
    @Column(name = "shop_key")
    public int getShopKey() {
        return shopKey;
    }

    public void setShopKey(int shopKey) {
        this.shopKey = shopKey;
    }

    @Basic
    @Column(name = "unq_seq_id")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Basic
    @Column(name = "shop_id")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "shop_name")
    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    @Basic
    @Column(name = "evt_cate")
    public String getEvtCate() {
        return evtCate;
    }

    public void setEvtCate(String evtCate) {
        this.evtCate = evtCate;
    }

    @Basic
    @Column(name = "evt_user")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "evt_timestamp")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Basic
    @Column(name = "evt_note")
    public String getEvtNote() {
        return evtNote;
    }

    public void setEvtNote(String evtNote) {
        this.evtNote = evtNote;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MShopD mShopD = (MShopD) o;

        if (shopKey != mShopD.shopKey) return false;
        if (unqSeqId != null ? !unqSeqId.equals(mShopD.unqSeqId) : mShopD.unqSeqId != null) return false;
        if (shopId != null ? !shopId.equals(mShopD.shopId) : mShopD.shopId != null) return false;
        if (shopName != null ? !shopName.equals(mShopD.shopName) : mShopD.shopName != null) return false;
        if (evtCate != null ? !evtCate.equals(mShopD.evtCate) : mShopD.evtCate != null) return false;
        if (evtUser != null ? !evtUser.equals(mShopD.evtUser) : mShopD.evtUser != null) return false;
        if (evtTimestamp != null ? !evtTimestamp.equals(mShopD.evtTimestamp) : mShopD.evtTimestamp != null)
            return false;
        if (evtNote != null ? !evtNote.equals(mShopD.evtNote) : mShopD.evtNote != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = shopKey;
        result = 31 * result + (unqSeqId != null ? unqSeqId.hashCode() : 0);
        result = 31 * result + (shopId != null ? shopId.hashCode() : 0);
        result = 31 * result + (shopName != null ? shopName.hashCode() : 0);
        result = 31 * result + (evtCate != null ? evtCate.hashCode() : 0);
        result = 31 * result + (evtUser != null ? evtUser.hashCode() : 0);
        result = 31 * result + (evtTimestamp != null ? evtTimestamp.hashCode() : 0);
        result = 31 * result + (evtNote != null ? evtNote.hashCode() : 0);
        return result;
    }
}
